package com.bfly.mall.wechat.dto;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 微信公众号素材Form DTO
 *
 * @author 长沙商脉科技有限公司
 * @date 2021/1/4 14:02
 */
public class WeChatMpMaterialFormDTO implements Serializable,Comparable<WeChatMpMaterialFormDTO> {

    private static final long serialVersionUID = 866893776549343302L;
    private int id;
    private String mediaId;
    @NotBlank(message = "类型不能为空!")
    private String type;
    private String fileName;
    private String title;
    private String cover;
    private String author;
    private String digest;
    private boolean showCover;
    private String content;
    private String sourceUrl;
    private boolean openComment;
    private boolean canComment;
    private int platformId;
    private int seq;
    /**
     * 上传的文件路径
     *
     * @author 长沙商脉科技有限公司
     * @date 2021/1/9 19:27
     */
    private String file;

    @Override
    public int compareTo(WeChatMpMaterialFormDTO o) {
        return this.getSeq()-o.getSeq();
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFile() {
        return file;
    }

    public void setFile(String file) {
        this.file = file;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getMediaId() {
        return mediaId;
    }

    public void setMediaId(String mediaId) {
        this.mediaId = mediaId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getDigest() {
        return digest;
    }

    public void setDigest(String digest) {
        this.digest = digest;
    }

    public boolean isShowCover() {
        return showCover;
    }

    public void setShowCover(boolean showCover) {
        this.showCover = showCover;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSourceUrl() {
        return sourceUrl;
    }

    public void setSourceUrl(String sourceUrl) {
        this.sourceUrl = sourceUrl;
    }

    public boolean isOpenComment() {
        return openComment;
    }

    public void setOpenComment(boolean openComment) {
        this.openComment = openComment;
    }

    public boolean isCanComment() {
        return canComment;
    }

    public void setCanComment(boolean canComment) {
        this.canComment = canComment;
    }

    public int getPlatformId() {
        return platformId;
    }

    public void setPlatformId(int platformId) {
        this.platformId = platformId;
    }

    public int getSeq() {
        return seq;
    }

    public void setSeq(int seq) {
        this.seq = seq;
    }
}
